package com.nimt.hqgl_idea.util;

public enum  ErrorEnum {
    Account_Not_Exist(10001,"账户不存在"),
    Password_Invalid(10002,"用户名或密码错误"),
    No_More_Data(10003,"没有更多数据"),
    System_Exception(10004,"系统异常"),
    Insert_Faild(10005,"数据插入到数据库失败"),
    File_Upload_Faild(10006,"文件上传异常"),
    Un_Supported_Encoding(10007,"不支持的字符集"),
    Token_invalid(10008,"无效的token"),
    Account_Exists(10009,"登录名已存在"),
    Create_Account_Error(10010,"用户创建失败"),
    Account_Modify_error(10011,"用户修改失败!"),
    Role_Invalid(10012,"无效的身份！"),
    Old_Password_Error(10013,"原密码错误！"),
    Service_Error(10014,"报修失败"),
    Stock_Not_Enough(10015,"库存不足"),
    Delete_Error(10016,"删除失败!"),
    Password_Repeat_Error(10017,"原密码和新密码相同");
    private  Integer code;
    private String msg;

    ErrorEnum(Integer code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
